import request from '@/utils/request'

// 分页查询分销商列表
export function distributorGetList(data) {
  return request({
    url: '/sys/pc/distributorManage/page',
    method: 'post',
    data
  })
}
// 保存/修改分销商
export function distributorSave(data) {
  return request({
    url: '/sys/pc/distributorManage/save',
    method: 'post',
    data
  })
}
// 删除分销商
export function distributorDel(data) {
  return request({
    url: '/sys/pc/distributorManage/updateDeleteDistributor',
    method: 'post',
    data
  })
}
// 是否失效开关
export function distributorUpdate(data) {
  return request({
    url: '/sys/pc/distributorManage/updateDistributorById',
    method: 'post',
    params: data
  })
}
// 分销商管理-结算统计-状态修改
export function distributorUpdateStatus(data) {
  return request({
    url: '/sys/pc/distributorManage/updateDistributorRecordStatus',
    method: 'post',
    data
  })
}
// 结算明细-查看个人结算明细
export function personalDetailList(data) {
  return request({
    url: '/sys/pc/distributor/agentSettleInfo/getDistributorRecordPersonalDetailList',
    method: 'post',
    data
  })
}
